﻿<%@ Page Title="" Language="C#" MasterPageFile="~/LTR/MlyLtrMaster.Master" AutoEventWireup="true" CodeBehind="CreateAlert.aspx.cs" Inherits="MLY.LTR.CreateAlert"  %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>

<asp:Content ID="Content1" ContentPlaceHolderID="titleHolder" runat="server">
    <script type="text/javascript" language="javascript">
        function TimeoutExpirationClick() {
            var TimeCheckBox = document.getElementById("ctl00_ContentPlaceHolder1_TimeoutExpirationCheckBox");
            if (TimeCheckBox.checked) {
                $("#TimeExpirationDiv").show(50);
            }
            else {
                $("#TimeExpirationDiv").hide();
            }
        }
        
        function SetCheckbox(cbControl, state) {
            if (cbControl.checked != state)
                cbControl.click();
        }

        function CheckBoxListSelect(cbControl, state) {
            var chkBoxList = document.getElementById(cbControl);
            var chkBoxCount = chkBoxList.getElementsByTagName("input");
            
            for (var i = 0; i < chkBoxCount.length; i++) {
                if (chkBoxCount[i].type == "checkbox") {
                    SetCheckbox(chkBoxCount[i], state);
                }                    
            }

            return false;
        }

//        function CheckBoxListSelect(name, state) {
//            var chkBoxEs = document.getElementsByName(name);
//            for (var i = 0; i < chkBoxEs.length; i++) {
//                chkBoxEs[i].checked = state;
//            }
//        }

        
        function EditedClick() {
            var EditedCheckBox = document.getElementById("ctl00_ContentPlaceHolder1_EditedCheckBox");
            if (EditedCheckBox.checked)
                $("#AllFieldsDiv").show();
            else {
                SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EveryChangeCheckBox"), true);
                SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_SpecificChangeCheckBox"), false);
                $("#AllFieldsDiv").hide();
                 ClearAdvanced();
            }


        }
        function SpecificFieldsClick(src) {
            
            
            var ChckBx = document.getElementById("ctl00_ContentPlaceHolder1_EveryChangeCheckBox");
            if (ChckBx.checked) {
                ClearAdvanced();
                $("#setclearallfieldsbuttons").hide(100);
            }
            else {
                $("#advanced").fadeIn(100);
                $("#setclearallfieldsbuttons").fadeIn(100);
            }
            if (src == 'e')
                document.getElementById("ctl00_ContentPlaceHolder1_SpecificChangeCheckBox").click();
            else
                document.getElementById("ctl00_ContentPlaceHolder1_EveryChangeCheckBox").click();
        }

        function ClearAdvanced() {
            InitAdvanced("true");
            $("#advanced").hide();
        }



        function InitAdvanced(check) {
            if (check == "true")
                InitAdvancedTrue();
            else
                InitAdvancedFalse();
            
        }

        function InitAdvancedTrue() {
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventSplitIdCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCustomerWorkOrderNumberCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventContractorWorkOrderNumberCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventContractorLotNumberCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventSendDateCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventRequestedDelivaryDateCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventPlannedDelivaryDateCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventActualDelivaryDateCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCustomerPriorityCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventQuantityCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCustomerCatalougeCodeCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventProductDescriptionCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventTextFieldACheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventTextFieldBCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventRemarksCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventOrderNumberCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventUpdateDateCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventDateCreatedCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventUpdateByCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventTotalSumCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventContractorCatalogueCodeCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventDateFieldACheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventDateFieldBCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventoriginalWoForDistCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventoriginalQuantityCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventOriginalPlannedDeliveryDateCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventOriginalRequestedDeliveryDateCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCustomerOrderNumberCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventTextFieldCCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCurrentLifeCycleStageCheckBox"), true);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventPreviousLifeCycleStageCheckBox"), true);
        }

        function InitAdvancedFalse() {
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventSplitIdCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCustomerWorkOrderNumberCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventContractorWorkOrderNumberCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventContractorLotNumberCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventSendDateCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventRequestedDelivaryDateCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventPlannedDelivaryDateCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventActualDelivaryDateCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCustomerPriorityCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventQuantityCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCustomerCatalougeCodeCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventProductDescriptionCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventTextFieldACheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventTextFieldBCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventRemarksCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventOrderNumberCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventUpdateDateCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventDateCreatedCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventUpdateByCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventTotalSumCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventContractorCatalogueCodeCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventDateFieldACheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventDateFieldBCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventoriginalWoForDistCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventoriginalQuantityCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventOriginalPlannedDeliveryDateCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventOriginalRequestedDeliveryDateCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCustomerOrderNumberCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventTextFieldCCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventCurrentLifeCycleStageCheckBox"), false);
            SetCheckbox(document.getElementById("ctl00_ContentPlaceHolder1_EventPreviousLifeCycleStageCheckBox"), false);
        }

        function EmailCheckBoxClick() {
            if (document.getElementById("ctl00_ContentPlaceHolder1_EmailCheckBox").checked == true) {
                $("#emailFields").show();
            }
            else
                $("#emailFields").hide();
        }

        function InitDivsVisibility() {
            var EmailCheckBox = document.getElementById("ctl00_ContentPlaceHolder1_EmailCheckBox");
            if (EmailCheckBox.checked) {
                $("#emailFields").show();
            }
            else {
                $("#emailFields").hide();
            }


            var TimeExpires = document.getElementById("ctl00_ContentPlaceHolder1_TimeoutExpirationCheckBox");
            if (TimeExpires.checked) {
                $("#TimeExpirationDiv").show();
            }
            else {
                $("#TimeExpirationDiv").hide();
            }

            EditedClick();

            var EveryChangeCheckBox = document.getElementById("ctl00_ContentPlaceHolder1_EveryChangeCheckBox");
            if (EveryChangeCheckBox.checked) {
                ClearAdvanced();
                $("#setclearallfieldsbuttons").hide();
            }
            else {
                $("#advanced").show();
                $("#setclearallfieldsbuttons").show();
            }
                

        }

        window.onload = function() {
            $("#my_alertsmenuitem").addClass('active');
            InitDivsVisibility();
        }
    </script>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:HiddenField ID="ExistingAlertId" runat="server" Value="0" />
    <asp:Panel ID="MessagePanel" runat="server" Visible="false">
        <asp:Label ID="MessageLabel" runat="server" Text=""></asp:Label>
    </asp:Panel>
    <div id="createalert_outer" class="SC_Align"  >
        <div id="createalert_Top_title" class="Sccover_floater">
            <div id="alertsdecoration" class="Sccover_floater"></div>
            <div id="create_alert_title" class="Sccover_floater SC_Align">
                <h1><asp:Literal ID="NewalertTitle" runat="server" Text="Create new alert"></asp:Literal></h1>
                <br />
                <h2><asp:Label ID="AlertNameTitleLabel" runat="server" Text="<%$ Dict:Alert.Name %>"></asp:Label></h2>
                <asp:TextBox ID="AlertNameTextBox" runat="server" MaxLength="255" TextMode="SingleLine" Width="300"></asp:TextBox>
                <asp:RequiredFieldValidator ID="AlertNameTextBoxRequiredFieldValidator" runat="server" ErrorMessage="*" ControlToValidate="AlertNameTextBox"
                    ValidationGroup="All" SetFocusOnError="true"></asp:RequiredFieldValidator>
                <br /><br />
                <ul>
                    <li><h2><asp:Literal ID="ActionTitleLiteral" Text="Action send" runat="server"></asp:Literal></h2></li>
                    <li>&nbsp;</li>
                    <li><h3><asp:Literal ID="MailLiteral" Text="<%$ Dict:Alert.ActionSendMail %>" runat="server"></asp:Literal></h3></li>
                    <li><asp:CheckBox ID="EmailCheckBox" runat="server" onclick="javascript:EmailCheckBoxClick();" Height="24"  /></li>
                    <li><img alt="email" src="../Images/Icons/Letter.png" height="16" width="21" class="SC_inline" /></li>
                    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
                    <li><h3><asp:Literal ID="Literal1" Text="SMS" runat="server"></asp:Literal></h3></li>
                    <li><asp:CheckBox ID="SMSCheckBox" runat="server" Height="24" /></li>
                    <li><img src="../Images/Icons/phone.png" alt="sms" /></li>
                    <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li>
                    <li><asp:Literal ID="MarkRowLiteral" runat="server"  Text="<%$ Dict:Alert.MarkTheRow %>"></asp:Literal></li>
                    <li><asp:CheckBox ID="MarkRowCheckBox" runat="server" Height="24"  /></li>
                </ul>
                <br />
                <ul>
                    <li><h2><asp:Literal ID="Literal2" Text="Critical" runat="server"></asp:Literal></h2></li>
                    <li><asp:CheckBox ID="CriticalCheckBox" runat="server" Height="24"  /></li>
                </ul>
                
                <ajax:ToggleButtonExtender ID="EmailCheckBoxCBE" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EmailCheckBox" ImageWidth="21" ImageHeight="20" ></ajax:ToggleButtonExtender>
                
                <ajax:ToggleButtonExtender ID="MarkRowCheckBoxCBE" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="MarkRowCheckBox" ImageWidth="21" ImageHeight="20" ></ajax:ToggleButtonExtender>
                <ajax:ToggleButtonExtender ID="SMSCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="SMSCheckBox" ImageWidth="21" ImageHeight="20" ></ajax:ToggleButtonExtender>   
                <ajax:ToggleButtonExtender ID="CriticalCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="CriticalCheckBox" ImageWidth="21" ImageHeight="20" ></ajax:ToggleButtonExtender>  
                
            </div>
        </div>
        <div id="createalert_CustomersContractors" class="Sccover_floater">
            <div id="createalert_customers" class="Sccover_floater SC_border_right">
                <h2><asp:Label ID="CustomersTitleLabel" runat="server" Text="<%$ Dict:Alert.ChooseCustomers %>"></asp:Label></h2>
                &nbsp;
                <h3><asp:LinkButton ID="CheckAllCustomersLink" runat="server" Text="<%$ Dict:CheckAll %>" 
                  OnClientClick="javascript:CheckBoxListSelect('customers_table', true); return false;"></asp:LinkButton></h3>
                &nbsp;|&nbsp;
                <h3><asp:LinkButton ID="UncheckAllCustomersLink" runat="server" Text="<%$ Dict:UncheckAll %>" 
                  OnClientClick="return CheckBoxListSelect('customers_table', false)"></asp:LinkButton></h3>
                <br /><br />
                <asp:Repeater ID="CustomersCheckBoxesRepeater" runat="server" DataSourceID="CustomersDataSource">
                    <HeaderTemplate><table id="customers_table"></HeaderTemplate>
                    <FooterTemplate></table></FooterTemplate>
                    <ItemTemplate>
                        <tr>
                        <td>
                            <asp:CheckBox ID="CustomerCheckBox" runat="server" Height="24" Checked='<%# RelationCheck(Eval("OrgRelationId")) %>'
                             Text='<%# Eval("Name").ToString().Length > 10 ? Eval("Name").ToString().Substring(0,10) : Eval("Name").ToString()  %>' />
                            <ajax:ToggleButtonExtender ID="CustomerCheckBoxCBE" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                             UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                              TargetControlID="CustomerCheckBox" ImageWidth="21" ImageHeight="20" ></ajax:ToggleButtonExtender>
                            <asp:HiddenField ID="OrgRelationIdHiddenField" runat="server" Value='<%# Eval("OrgRelationId") %>' />
                        </td>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <td>
                            <asp:CheckBox ID="CustomerCheckBox" runat="server" Height="24" Checked='<%# RelationCheck(Eval("OrgRelationId")) %>'
                             Text='<%# Eval("Name").ToString().Length > 10 ? Eval("Name").ToString().Substring(0,10) : Eval("Name").ToString() %>' />
                            <ajax:ToggleButtonExtender ID="CustomerCheckBoxCBE" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                             UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                              TargetControlID="CustomerCheckBox" ImageWidth="21" ImageHeight="20" ></ajax:ToggleButtonExtender>
                            <asp:HiddenField ID="OrgRelationIdHiddenField" runat="server" Value='<%# Eval("OrgRelationId") %>' />
                        </td>
                        </tr>
                    </AlternatingItemTemplate>
                    
                </asp:Repeater>
            </div>
            <div id="createalert_contractors" class="Sccover_floater">
                <h2><asp:Label ID="ContractorsTitleLabel" runat="server" Text="<%$ Dict:Alert.ChooseContractors %>"></asp:Label></h2>
                &nbsp;
                <h3><asp:LinkButton ID="CheckAllContractorsLink" runat="server" Text="<%$ Dict:CheckAll %>" 
                  OnClientClick="return CheckBoxListSelect('contractors_table', true)"></asp:LinkButton></h3>
                &nbsp;|&nbsp;
                <h3><asp:LinkButton ID="UncheckAllContractorsLink" runat="server" Text="<%$ Dict:UncheckAll %>" 
                  OnClientClick="return CheckBoxListSelect('contractors_table', false)"></asp:LinkButton></h3>
                <br /><br />
                <asp:Repeater ID="ContractorsCheckboxRepeater" runat="server" DataSourceID="ContractorsDataSource" >
                    <HeaderTemplate><table id="contractors_table"></HeaderTemplate>
                    <FooterTemplate></table></FooterTemplate>
                    <ItemTemplate>
                        <tr><td>
                        <asp:CheckBox ID="ContractorsCheckBox" runat="server" Height="24" Checked='<%# RelationCheck(Eval("OrgRelationId")) %>'
                         Text='<%# Eval("Name").ToString().Length > 10 ? Eval("Name").ToString().Substring(0,10) : Eval("Name").ToString() %>' />
                        <ajax:ToggleButtonExtender ID="CustomerCheckBoxCBE" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                         UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                          TargetControlID="ContractorsCheckBox" ImageWidth="21" ImageHeight="20" ></ajax:ToggleButtonExtender>
                        <asp:HiddenField ID="OrgRelationIdHiddenField" runat="server" Value='<%# Eval("OrgRelationId") %>' />
                        </td>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <td>
                        <asp:CheckBox ID="ContractorsCheckBox" runat="server" Height="24" Checked='<%# RelationCheck(Eval("OrgRelationId")) %>'
                         Text='<%# Eval("Name").ToString().Length > 10 ? Eval("Name").ToString().Substring(0,10) : Eval("Name").ToString() %>' />
                        <ajax:ToggleButtonExtender ID="CustomerCheckBoxCBE" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                         UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                          TargetControlID="ContractorsCheckBox" ImageWidth="21" ImageHeight="20" ></ajax:ToggleButtonExtender>
                        <asp:HiddenField ID="OrgRelationIdHiddenField" runat="server" Value='<%# Eval("OrgRelationId") %>' />
                        </td></tr>
                    </AlternatingItemTemplate>
                </asp:Repeater>
                    
            </div>
 
        </div>
        
        <table cellpadding="5" style="width:90%;">
        <tr>
        <td style="width:40%; vertical-align:top;">
            <div id="emailFields" style="display:none;">
                <h4><asp:Label ID="AddFieldsLabel" runat="server" Text="<%$ Dict:Alert.EmailFieldsTitle %>"></asp:Label></h4>
                <%--<asp:Panel ID="DemoPanel4" runat="server">
                    <div class="democlass">
                        If you choose to receive an email about your alert - please choose what fields do you want to see in the mail (apart from the fields that were changed)
                    </div>              
                </asp:Panel>--%>
                <table>
                <tr>
                <td style="width:50%; vertical-align:top;">
                    <asp:CheckBox ID="EmailCustomerWorkOrderNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CustomerWorkOrderNumber %>" Checked="true" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailCustomerWorkOrderNumberCheckBoxExtender" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailCustomerWorkOrderNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailContractorWorkOrderNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ContractorWorkOrderNumber %>"  Checked="true" Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailContractorWorkOrderNumberCheckBoxToggleButtonExtender" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailContractorWorkOrderNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailContractorLotNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ContractorLotNumber %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailContractorLotNumberCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailContractorLotNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailSendDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.SendDate %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailSendDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailSendDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailRequestedDelivaryDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.RequestedDelivaryDate %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailRequestedDelivaryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailRequestedDelivaryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailPlannedDelivaryDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.PlannedDelivaryDate %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailPlannedDelivaryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailPlannedDelivaryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailsplitIdCheckBox" runat="server" Text="<%$ Dict:clientAddWo.splitId %>" Checked="false" Height="24" /> 
                    <ajax:ToggleButtonExtender ID="EmailsplitIdCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailsplitIdCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailCustomerPriorityCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CustomerPriority %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailCustomerPriorityCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailCustomerPriorityCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailQuantityCheckBox" runat="server" Text="<%$ Dict:clientAddWo.Quantity %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailQuantityCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailQuantityCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailCustomerCatalougeCodeCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CustomerCatalougeCode %>" Checked="true" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailCustomerCatalougeCodeCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailCustomerCatalougeCodeCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailProductDescriptionCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ProductDescription %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailProductDescriptionCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailProductDescriptionCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailTextFieldACheckBox" runat="server" Text="<%$ Dict:clientAddWo.TextFieldA %>" Checked="true"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailTextFieldACheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailTextFieldACheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailTextFieldBCheckBox" runat="server" Text="<%$ Dict:clientAddWo.TextFieldB %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailTextFieldBCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailTextFieldBCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailActualDelivaryDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ActualDelivaryDate %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailActualDelivaryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailActualDelivaryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailRemarksCheckBox" runat="server" Text="<%$ Dict:clientAddWo.Remarks %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailRemarksCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailRemarksCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    
                </td>
                <td style="width:50%;vertical-align:top;">
                
                    
                    <asp:CheckBox ID="EmailOrderNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.OrderNumber %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailOrderNumberCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailOrderNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailDateCreatedCheckBox" runat="server" Text="<%$ Dict:clientAddWo.DateCreated %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailDateCreatedCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailDateCreatedCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailUpdateDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.UpdateDate %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailUpdateDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailUpdateDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailUpdatedByCheckBox" runat="server" Text="<%$ Dict:clientAddWo.UpdatedBy %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailUpdatedByCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailUpdatedByCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailtotalSumCheckBox" runat="server" Text="<%$ Dict:clientAddWo.totalSum %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailtotalSumCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailtotalSumCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailContractorCatalougeCodeCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ContractorCatalougeCode %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailContractorCatalougeCodeCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailContractorCatalougeCodeCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailDateFieldACheckBox" runat="server" Text="<%$ Dict:clientAddWo.DateFieldA %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailDateFieldACheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailDateFieldACheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailDateFieldBCheckBox" runat="server" Text="<%$ Dict:clientAddWo.DateFieldB %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailDateFieldBCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailDateFieldBCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailTextFieldCCheckBox" runat="server" Text="<%$ Dict:clientAddWo.TextFieldC %>" Checked="false" Height="24" />  
                    <ajax:ToggleButtonExtender ID="EmailTextFieldCCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailTextFieldCCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailOriginalWoFordistCheckBox" runat="server" Text="<%$ Dict:clientAddWo.OriginalWoFordist %>"  Checked="false" Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailOriginalWoFordistCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailOriginalWoFordistCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailOriginalQuantityCheckBox" runat="server" Text="<%$ Dict:clientAddWo.OriginalQuantity %>"  Checked="false" Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailOriginalQuantityCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailOriginalQuantityCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailOriginalPlannedDeliveryDateCheckBox" runat="server" Text="<%$ Dict:OriginalPlannedDeliveryDate %>" Checked="false"  Height="24"/>
                    <ajax:ToggleButtonExtender ID="EmailOriginalPlannedDeliveryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailOriginalPlannedDeliveryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailOriginalRequestedDeliveryDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.OriginalRequestedDeliveryDate %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailOriginalRequestedDeliveryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailOriginalRequestedDeliveryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                    <br />
                    <asp:CheckBox ID="EmailCustomerOrderNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CustomerOrderNumber %>" Checked="false" Height="24" />
                    <ajax:ToggleButtonExtender ID="EmailCustomerOrderNumberCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                     UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                      TargetControlID="EmailCustomerOrderNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                </tr>
                </table>
            </div>
        </td>
        </tr>
        </table>
        <%--<asp:Label ID="CustomerClientTitleLabel" runat="server" Text="Customer/Client:"></asp:Label>
        &nbsp;&nbsp;
        <asp:DropDownList ID="CustomersClientsDDL" runat="server" DataTextField="Name" DataValueField="OrgRelationId"
         DataSourceID="OrganizationsDataSource"></asp:DropDownList>
        <br /><br />--%>
        
        <br />
        <div id="NotificationDefDiv">
        <div class="floaterandLeftAlign">
        <ul>
            <li><h2>Notification when: </h2></li>
            <li><asp:CheckBox ID="TimeoutExpirationCheckBox" runat="server" Text="When specific time expires" onclick="javascript:TimeoutExpirationClick()" Height="24" /></li>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;</li>
            <li><asp:CheckBox ID="NewEntryCheckBox" runat="server" Text="<%$ Dict:Alert.NewRowAdded %>" Height="24"/></li>
            <li>&nbsp;&nbsp;&nbsp;&nbsp;</li>
            <li><asp:CheckBox ID="EditedCheckBox" runat="server" Text="<%$ Dict:Alert.RowEdited %>" onclick="javascript:EditedClick()"/></li>
           
        </ul>
        <ajax:ToggleButtonExtender ID="TimeoutExpirationCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
         UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
          TargetControlID="TimeoutExpirationCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>          
        <ajax:ToggleButtonExtender ID="NewEntryCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
         UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
          TargetControlID="NewEntryCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
        <ajax:ToggleButtonExtender ID="EditedCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
         UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
          TargetControlID="EditedCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
        <div id="TimeExpirationDiv" style="display:none; padding:5px 0px 5px 0px;">            
            <asp:DropDownList runat="server" ID="DateSinceDDL" CssClass="SC_ddl" >
                <asp:ListItem Text="<%$Dict:clientAddWo.SendDate %>" Value="1" Selected="True"></asp:ListItem>
                <asp:ListItem Text="<%$Dict:clientAddWo.RequestedDelivaryDate %>" Value="2"></asp:ListItem>
                <asp:ListItem Text="<%$Dict:clientAddWo.PlannedDelivaryDate %>" Value="3"></asp:ListItem>                        
                <asp:ListItem Text="<%$Dict:clientAddWo.ActualDelivaryDate %>" Value="4" ></asp:ListItem>                                         
            </asp:DropDownList>
           
            <asp:Label ID="DaysSinceTitleLabel" runat="server" Text=" is before more than "></asp:Label>
            <asp:TextBox ID="NumDaysTextBox" runat="server" Width="30" MaxLength="3"></asp:TextBox>
            <asp:Label ID="DaysSiceTitleLabel2" runat="server" Text="Days, and "></asp:Label>
            <asp:DropDownList ID="NullDateDDL" runat="server"  CssClass="SC_ddl">
                <asp:ListItem Text="<%$Dict:clientAddWo.SendDate %>" Value="1"></asp:ListItem>
                <asp:ListItem Text="<%$Dict:clientAddWo.RequestedDelivaryDate %>" Value="2"></asp:ListItem>
                <asp:ListItem Text="<%$Dict:clientAddWo.PlannedDelivaryDate %>" Value="3"></asp:ListItem>                        
                <asp:ListItem Text="<%$Dict:clientAddWo.ActualDelivaryDate %>" Value="4" Selected="True"></asp:ListItem>                                         
            </asp:DropDownList>
            
            <asp:Label ID="DaysSiceTitleLabel3" runat="server" Text="is still empty"></asp:Label>
        </div>
        </div>
        <div style="clear:both;"></div>
        <div id="AllFieldsDiv" style="display:none; margin-left: 30px; margin-right: 30px;" class="floaterandLeftAlign">
            <%--<asp:Panel ID="DemoPanel6" runat="server">
                <div class="democlass" style="width:250px;">
                    You can choose to get notification on every change, or only if specific fields were changed.
                </div>            
            </asp:Panel>--%>
            <br />
            <table style="width:100%">
            <tr>
            <td style="width:20%"></td>
            <td style="width:40%">
            <ul>
                <li>
                <asp:CheckBox ID="EveryChangeCheckBox" runat="server" Checked="true" onclick="javascript:SpecificFieldsClick('e')" 
                 Text="Every field change" />
                 
                <%--<asp:RadioButton ID="EveryChangeRadioButton" runat="server" Checked="true" onclick="javascript:SpecificFieldsClick()"
                 Text="Every field change" GroupName="Change" />--%></li>
                <li>
                <asp:CheckBox ID="SpecificChangeCheckBox" runat="server" Checked="false" onclick="javascript:SpecificFieldsClick('s')" 
                 Text="Specific field change" />
                <%--<asp:RadioButton ID="SpecificChangeRadioButton" runat="server" onclick="javascript:SpecificFieldsClick()"
                 Text="Specific field change" GroupName="Change" />--%>
                 </li>
              </ul>
            </td>
            <td style="width:30%">
                <ul id="setclearallfieldsbuttons" style="display:none;"> 
                    <li><h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h3></li>
                    <li><h3><asp:LinkButton ID="ClearAllButton" runat="server" Text="<%$ Dict:ClearAll %>" OnClientClick='InitAdvanced("false"); return false;' ></asp:LinkButton></h3></li> 
                    <li><h3>&nbsp;|&nbsp;</h3></li>
                    <li><h3><asp:LinkButton ID="CheckAllButton" runat="server" Text="<%$ Dict:CheckAll %>" OnClientClick='InitAdvanced("true"); return false;' ></asp:LinkButton></h3></li>
                    
                </ul>
            </td>
             <td style="width:10%"></td>
            </tr>
            </table>
            <br /> 
            
            <ajax:ToggleButtonExtender ID="EveryChangeButtonExtender" runat="server" CheckedImageAlternateText="checked" UncheckedImageAlternateText="Unchecked"
             CheckedImageUrl="~/Images/Icons/RadioOn.png" TargetControlID="EveryChangeCheckBox" ImageHeight="19" ImageWidth="20"
             UncheckedImageUrl="~/Images/Icons/RadioOff.png"></ajax:ToggleButtonExtender>
            
            <ajax:ToggleButtonExtender ID="SpecificChangeRadioButtonToggleButtonExtender1" runat="server" CheckedImageAlternateText="checked" UncheckedImageAlternateText="Unchecked"
             CheckedImageUrl="~/Images/Icons/RadioOn.png" TargetControlID="SpecificChangeCheckBox" ImageHeight="19" ImageWidth="20"
             UncheckedImageUrl="~/Images/Icons/RadioOff.png"></ajax:ToggleButtonExtender>
            <%--<asp:RadioButtonList ID="RadioButtonList1" runat="server">
                <asp:ListItem Text="<%$ Dict:Alert.RowEdited.EveryChange %>" Selected="True" onclick="javascript:SpecificFieldsClick()"></asp:ListItem>
                <asp:ListItem Text="<%$ Dict:Alert.RowEdited.SpecificChange %>" onclick="javascript:SpecificFieldsClick()"></asp:ListItem>
            </asp:RadioButtonList>--%>
            
        </div>
        <div style="clear:both;"></div> 
        <div id="advanced" style="display:none; margin-left: 30px; margin-right: 30px; ">
            <table>
            <tr>
            <td style="text-align:top;" class="floaterandLeftAlign">
                <asp:CheckBox ID="EventSplitIdCheckBox" runat="server" Text="<%$ Dict:clientAddWo.splitId %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventSplitIdCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventSplitIdCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventCustomerWorkOrderNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CustomerWorkOrderNumber %>" Checked="true" Height="24" />
                 <ajax:ToggleButtonExtender ID="EventCustomerWorkOrderNumberCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventCustomerWorkOrderNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventContractorWorkOrderNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ContractorWorkOrderNumber %>"  Checked="true" Height="24"/>
                <ajax:ToggleButtonExtender ID="EventContractorWorkOrderNumberCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventContractorWorkOrderNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventContractorLotNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ContractorLotNumber %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventContractorLotNumberCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventContractorLotNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventSendDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.SendDate %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventSendDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventSendDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventRequestedDelivaryDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.RequestedDelivaryDate %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventRequestedDelivaryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventRequestedDelivaryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventPlannedDelivaryDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.PlannedDelivaryDate %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventPlannedDelivaryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventPlannedDelivaryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventActualDelivaryDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ActualDelivaryDate %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventActualDelivaryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventActualDelivaryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                                   
            </td>
            <td  style="text-align:top;" class="floaterandLeftAlign">
                <asp:CheckBox ID="EventCustomerPriorityCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CustomerPriority %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventCustomerPriorityCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventCustomerPriorityCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventQuantityCheckBox" runat="server" Text="<%$ Dict:clientAddWo.Quantity %>" Checked="true" />
                <ajax:ToggleButtonExtender ID="EventQuantityCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventQuantityCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventCustomerCatalougeCodeCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CustomerCatalougeCode %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventCustomerCatalougeCodeCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventCustomerCatalougeCodeCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventProductDescriptionCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ProductDescription %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventProductDescriptionCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventProductDescriptionCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventTextFieldACheckBox" runat="server" Text="<%$ Dict:clientAddWo.TextFieldA %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventTextFieldACheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventTextFieldACheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventTextFieldBCheckBox" runat="server" Text="<%$ Dict:clientAddWo.TextFieldB %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventTextFieldBCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventTextFieldBCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventRemarksCheckBox" runat="server" Text="<%$ Dict:clientAddWo.Remarks %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventRemarksCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventRemarksCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventOrderNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.OrderNumber %>" Checked="true" />
                <ajax:ToggleButtonExtender ID="EventOrderNumberCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventOrderNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                
            </td>
            <td style="text-align:top;" class="floaterandLeftAlign">
                <asp:CheckBox ID="EventUpdateDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.UpdateDate %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventUpdateDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventUpdateDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventDateCreatedCheckBox" runat="server" Text="<%$ Dict:clientAddWo.DateCreated %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventDateCreatedCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventDateCreatedCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventUpdateByCheckBox" runat="server" Text="<%$ Dict:clientAddWo.UpdatedBy %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventUpdateByCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventUpdateByCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventTotalSumCheckBox" runat="server" Text="<%$ Dict:clientAddWo.totalSum %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventTotalSumCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventTotalSumCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventContractorCatalogueCodeCheckBox" runat="server" Text="<%$ Dict:clientAddWo.ContractorCatalougeCode %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventContractorCatalogueCodeCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventContractorCatalogueCodeCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventDateFieldACheckBox" runat="server" Text="<%$ Dict:clientAddWo.DateFieldA %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventDateFieldACheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventDateFieldACheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventDateFieldBCheckBox" runat="server" Text="<%$ Dict:clientAddWo.DateFieldB %>" Checked="true"  Height="24"/>
                <ajax:ToggleButtonExtender ID="EventDateFieldBCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventDateFieldBCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventTextFieldCCheckBox" runat="server" Text="<%$ Dict:clientAddWo.TextFieldC %>" Checked="true"  Height="24"/>                
                <ajax:ToggleButtonExtender ID="EventTextFieldCCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventTextFieldCCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>   
            </td>
            <td style="text-align:top;" class="floaterandLeftAlign">
                <asp:CheckBox ID="EventoriginalWoForDistCheckBox" runat="server" Text="<%$ Dict:clientAddWo.OriginalWoFordist %>"  Checked="true" Height="24"/>
                <ajax:ToggleButtonExtender ID="EventoriginalWoForDistCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventoriginalWoForDistCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>   
                <br />
                <asp:CheckBox ID="EventoriginalQuantityCheckBox" runat="server" Text="<%$ Dict:clientAddWo.OriginalQuantity %>"  Checked="true" Height="24"/>
                <ajax:ToggleButtonExtender ID="EventoriginalQuantityCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventoriginalQuantityCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventOriginalPlannedDeliveryDateCheckBox" runat="server" Text="<%$ Dict:OriginalPlannedDeliveryDate %>Original Planned Delivery Date" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventOriginalPlannedDeliveryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventOriginalPlannedDeliveryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventOriginalRequestedDeliveryDateCheckBox" runat="server" Text="<%$ Dict:clientAddWo.OriginalRequestedDeliveryDate %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventOriginalRequestedDeliveryDateCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventOriginalRequestedDeliveryDateCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventCustomerOrderNumberCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CustomerOrderNumber %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventCustomerOrderNumberCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventCustomerOrderNumberCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventCurrentLifeCycleStageCheckBox" runat="server" Text="<%$ Dict:clientAddWo.CurrentLifeCycleStage %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventCurrentLifeCycleStageCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventCurrentLifeCycleStageCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
                <br />
                <asp:CheckBox ID="EventPreviousLifeCycleStageCheckBox" runat="server" Text="<%$ Dict:clientAddWo.PreviousLifeCycleStage %>" Checked="true" Height="24" />
                <ajax:ToggleButtonExtender ID="EventPreviousLifeCycleStageCheckBoxToggleButtonExtender1" runat="server" CheckedImageUrl="~/Images/Icons/CheckBoxChecked.png"
                 UncheckedImageUrl="~/Images/Icons/CheckBoxUnChecked.png" CheckedImageAlternateText="Checked" UncheckedImageAlternateText="Unchecked"
                  TargetControlID="EventPreviousLifeCycleStageCheckBox" ImageWidth="21" ImageHeight="20"  ></ajax:ToggleButtonExtender>
            </td>
            </tr>
                    
               
            </table>
            
        </div>
        <br />
        <%--<asp:Panel ID="DemoPanel7" runat="server">
            <div class="democlass"  style="width:250px;">
                This button creates the alert definition.
            </div>        
        </asp:Panel>--%>
       
        <asp:Button ID="SubmitButton" runat="server" Text="<%$ Dict:General.Submit %>" CssClass="SC_Button"
         CausesValidation="true" ValidationGroup="All" onclick="SubmitButton_Click"  />
         &nbsp;&nbsp;
         <asp:Button ID="CancelButton" runat="server" Text="<%$ Dict:EditMessage.Cancel %>" CausesValidation="false"
         PostBackUrl="~/LTR/Alerts.aspx" CssClass="SC_BottonGrey"  />
         
               
        </div>
    </div>
   <%-- <asp:SqlDataSource ID="OrganizationsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>"
        SelectCommand="GetOrganizationsRelations" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:SessionParameter Name="OrganizationId" DbType="Int32" SessionField="OrganizationId" ConvertEmptyStringToNull="false" />
        </SelectParameters>
    </asp:SqlDataSource>--%>
    <asp:SqlDataSource ID="CustomersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>"
        SelectCommand="GetOrganizationCustomers" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:SessionParameter Name="OrganizationId" DbType="Int32" SessionField="OrganizationId" ConvertEmptyStringToNull="false" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:SqlDataSource ID="ContractorsDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:MLYConnectionString %>"
        SelectCommand="GetOrganizationSuppliers" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:SessionParameter Name="OrganizationId" DbType="Int32" SessionField="OrganizationId" ConvertEmptyStringToNull="false" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
